namespace PickGold.Charting
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Security.Permissions;
    using System.Web;
    using PickGold.Charting.Utilities;

    [SRDescription("DescriptionAttributeVerticalLineAnnotation_VerticalLineAnnotation"), AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    public class VerticalLineAnnotation : LineAnnotation
    {
        internal override void AdjustLineCoordinates(ref PointF point1, ref PointF point2, ref RectangleF selectionRect)
        {
            point2.X = point1.X;
            selectionRect.Width = 0f;
            base.AdjustLineCoordinates(ref point1, ref point2, ref selectionRect);
        }

        internal override RectangleF GetContentPosition()
        {
            return new RectangleF(float.NaN, float.NaN, 0f, float.NaN);
        }

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), SerializationVisibility(SerializationVisibility.Hidden), SRDescription("DescriptionAttributeAnnotationType"), Browsable(false), Bindable(true), EditorBrowsable(EditorBrowsableState.Never), SRCategory("CategoryAttributeMisc")]
        public override string AnnotationType
        {
            get
            {
                return "VerticalLine";
            }
        }
    }
}

